package cn.bdqn.xtxg.oof;

public class Truck  extends MotoVehicle{
	private int weight;
	@Override
	public int calRent(int day) {
		int money=0;
		if(weight<=16)
		{
			money=1800*day;
		}else {
			money=2500*day;
		}
		return money;
		
	}
	public Truck()
	{}
	public Truck(String no,String name,int weight)
	{
		this.weight=weight;
		this.setNo(no);
		this.setName(name);
	}

}

